Set TTS to Play Specified Music

  • Function:

    magicbox.set_tts_music(port, index)
    
  • Description: set text-to-speech modules to play specified music

  • Required parameter:

    • port: controller port (the value is 2)
    • index: music index. data type: int, range: 1 ~ 15
  • Return:
    • True: The command has been finished.
    • False: The command has not been finished.
  • Example

    magicbox.set_tts_music(port=2, index=1)
    

    Set the text-to-speech module connected to Port 2 of controller to play the first music.

results matching ""

    No results matching ""